<h1>Editing material</h1>

<%= error_messages_for :material %>

<% form_for(@material) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Rules</b><br />
    <%= f.text_field :rules %>
  </p>

  <p>
    <b>Desc</b><br />
    <%= f.text_area :desc %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @material %> |
<%= link_to 'Back', materials_path %>
